package com.icarsaas.saas.tenant.cars.customer.model;

import com.icarsaas.saas.component.base.DataEntity;
import lombok.Data;
import org.hibernate.annotations.*;
import org.hibernate.annotations.Cache;

import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author xrong120@gmail.com
 * @title: Customer
 * @projectName icarsaas
 * @description: 客户管理
 * @date 2022/1/2211:47
 */
@Data @Entity @Table(name = "cars_customer")
@DynamicInsert @DynamicUpdate
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Customer extends DataEntity {
    @Id
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid", strategy = "org.hibernate.id.UUIDGenerator")
    @Column(name = "id", nullable = false, insertable = true, updatable = true, length = 36)
    private String id;
    private String type;//客户类型:1-消费客户；2-供货厂商
    private String name;//会员名称
    private String address;//地址
    private String mobile;//手机
    private String tel;//联系电话
}
